package v1

import (
	"github.com/gogf/gf/v2/frame/g"
	"github.com/gogf/gf/v2/net/ghttp"
)

type UploadReq struct {
	g.Meta `path:"/common/upload" method:"post" sm:"上传文件" tags:"上传文件"`
	File   *ghttp.UploadFile `p:"file" type:"file" dc:"选择上传文件" comment:"所上传的文件，必须为图片格式" v:"required#请传入文件"`
}
type UploadRes struct {
	g.Meta `mime:"application/json;charset=UTF-8"`
	Url    string `json:"url" dc:"文件URL"`
}
